package cn.jhc.bookstore.beans;

public class Book {
    private int id;
    private String title;
    private double price;
    private int pages;
    private String isbn;
    private String imagePath;

    public Book() {}
    
    public Book(String title, double price, int pages, String isbn, String imagePath) {
        this.title = title;
        this.price = price;
        this.pages = pages;
        this.isbn = isbn;
        this.imagePath = imagePath;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public String getIsbn() {
        return isbn;
    }

    public void setIsbn(String isbn) {
        this.isbn = isbn;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }
}
